takeLeft

fun <ERR, A> ValidatedNel<ERR, A>.takeLeft(other: ValidatedNel<ERR, A>): ValidatedNel<ERR, A>(source)

Often you have two validations that return the same thing, and you don't want necessarily to pair them. takeLeft will return the value of the left side iff both validations succeed.

eg.

Valid("hi").takeLeft(Valid("mum")) == Valid("hi")